package com.sword.cases.proxy;

/**
 * Created by SwordLiu on 2017-05-09.
 */
public class Proxy implements SourceAble {

    private Source source;

    public Proxy() {
        this.source = new Source();
    }

    public void method() {
        befor();
        source.method();
        after();
    }

    private void after() {
        System.out.println("after proxy.");
    }

    private void befor() {
        System.out.println("befor proxy.");
    }
}
